package com.yan.demo;

import java.util.Properties;
import java.util.Set;

/**
 * @author taoge
 * @Date 2024/8/6 16:21
 * @Description Properties集合
 */
public class Demo6 {
    public static void main(String[] args) {
        Properties map = new Properties();
        map.setProperty("zs" , "18");
        map.setProperty("lisi" , "19");
        map.setProperty("wangwu" , "20");
        map.setProperty("zhaoliu" , "21");
        //System.out.println(map);
        Set<String> key = map.stringPropertyNames();
        for (String s : key) {
            System.out.println(map.getProperty(s));
        }
    }
}
